class Employee():
    employee_count = 0

    def __init__(self):
        Employee.employee_count += 1

    def sayHello(self):
        print("Hello!")


employee1 = Employee()
employee2 = Employee()
employee1.sayHello()
employee2.sayHello()
print('实例化了 {}对象'.format(Employee.employee_count))